//
//  DeviceItem.h
//  SqliteManagerDemo
//
//  Created by US bike on 2017/9/14.
//  Copyright © 2017年 US bike. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef enum : NSUInteger {
    
    RecordState_UNWRITEN = 1,
    RecordState_WRITING,
    RecordState_WRITE_FAILED,
    RecordState_WRITE_SUCCEED,
    
} RecordState;


@interface DeviceItem : NSObject


@property (nonatomic, copy) NSString *recordID;
@property (nonatomic, copy) NSString *deviceID;
@property (nonatomic, assign) RecordState recordState;
@property (nonatomic, copy) NSString *address;
@property (nonatomic, copy) NSString *update;

//根据字符串初始化对象
- (instancetype) initWithStr:(NSString *) str;
//根据对象生成字符串
- (NSString *) dataStr;

@end
